using MicroMsg.UI.Util;
using System;
using System.Diagnostics;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
namespace MicroMsg.UI.Page
{
	public class BindingSuccess : BasePage
	{
		private string currentToken;
		internal Grid LayoutRoot;
		internal TextBlock PageTitle;
		internal Grid ContentPanel;
		internal Button OKBtn;
		private bool _contentLoaded;
		public static void ShowBindingSuccessPage(BasePage originPage, string strToken)
		{
			originPage.GoToPage("/Source/Plugin/Facebook/UI/BindingSuccess.xaml", new object[]
			{
				strToken
			}, true);
		}
		public BindingSuccess()
		{
			this.InitializeComponent();
		}
		protected override void OnPageIn(object[] object_0)
		{
			if (object_0 != null && Enumerable.Count<object>(object_0) > 0)
			{
				this.currentToken = (object_0[0] as string);
				return;
			}
		}
		protected override void OnPageOut()
		{
		}
		private void OKBtn_Click(object sender, RoutedEventArgs e)
		{
			FaceBookFriends.ShowFaceBookFriendsPage(this, this.currentToken, true);
		}
		[DebuggerNonUserCode]
		public void InitializeComponent()
		{
			if (this._contentLoaded)
			{
				return;
			}
			this._contentLoaded = true;
			Application.LoadComponent(this, new Uri("/MicroMsg;component/Source/Plugin/Facebook/UI/BindingSuccess.xaml", 2));
			this.LayoutRoot = (Grid)base.FindName("LayoutRoot");
			this.PageTitle = (TextBlock)base.FindName("PageTitle");
			this.ContentPanel = (Grid)base.FindName("ContentPanel");
			this.OKBtn = (Button)base.FindName("OKBtn");
		}
	}
}
